package com.leeon.typeinfo.example;

public class Exmaple7 {

	public static final String PAKAGE = "com.leeon.typeinfo";
	
	public static void main(String[] args){
		if(args == null || args.length <= 0){
			return;
		}
		Class c = null;
		Object object = null;
	
			try {
				c = Class.forName(PAKAGE + "." + args[0]);
				object = c.newInstance();
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			}catch (InstantiationException e) {
				e.printStackTrace();
			}catch (IllegalAccessException e) {
				e.printStackTrace();
			}
		
	}
	
}
